

      <%@taglib prefix="shiro" uri="http://shiro.apache.org/tags" %>
      <%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %>

<div class="left-menu">
<% String currentPage=request.getParameter("currentPage"); %>
	<span class="chatter-company-name">${ userDetails.company.companyName }</span>
    <a href="/sales/s/profile" class="chatter-owner">${ userDetails.fName } ${ userDetails.lName }</a>
    <div class="chatter-img">
    	<c:choose>
          <c:when test="${userDetails.photo==null}">
             <a href="/sales/s/profile"><img src="../images/noprofile.jpg"/></a>
          </c:when>
          <c:otherwise>
             <a href="/sales/s/profile"><img src="${userDetails.photo.encode}"/></a>
          </c:otherwise>
        </c:choose>
    	<a href="/sales/s/edit-profile" class="profile-img-change">Change</a>
    </div>
    <shiro:hasAnyRoles name="owner">
    <a <% if ( currentPage.equals("chatter") ){ %>class="left-menu-active chatter-filter" href="#"  <%}else{%> href="/sales/s/chatter" class="chatter-filter" <%}%>>All Chatter</a>
    <a <% if ( currentPage.equals("me") ){ %>class="left-menu-active chatter-filter" href="#"  <%}else{%> href="/sales/s/chatterme" class="chatter-filter" <%}%>>My Chatter (Me)</a>
    <a <% if ( currentPage.equals("company") ){ %>class="left-menu-active chatter-filter" href="#"  <%}else{%> href="/sales/s/chattercompany" class="chatter-filter" <%}%>>Company Chatter</a>
   
    </shiro:hasAnyRoles>
     <a <% if ( currentPage.equals("people") ){ %>class="left-menu-active chatter-filter" href="/sales/s/people"  <%}else{%> href="/sales/s/people" class="chatter-filter" <%}%>>People</a>
    <%--<a href="#" class="chatter-filter" >Follow</a>
    <a href="#" class="chatter-filter" >Bookmarks</a>
    <a href="#"class="chatter-filter" >Groups</a>
    <a href="#"class="chatter-filter" >Files</a>
    <a href="#" class="recycle-bin left-menu-title">Recycle Bin</a>--%>
</div>